import request from '@/utils/request'

export function getArticleList(data) {
  return request({
    url: 'article/getArticleList',
    method: 'post',
    data
  })
}

export function downOrUpArticle(data) {
  return request({
    url: 'article/articleDownOrUp',
    method: 'post',
    data
  })
}

export function deleteArticle(data) {
  return request({
    url: 'article/articleDelete',
    method: 'post',
    data
  })
}

export function createArticle(data) {
  return request({
    url: 'article/articleCreate',
    method: 'post',
    data
  })
}

export function upladeArticle(data) {
  return request({
    url: 'article/articleUpdate',
    method: 'post',
    data
  })
}

export function getArticleDetail(data) {
  return request({
    url: 'article/getArticleDetail',
    method: 'post',
    data
  })
}